#include <iostream>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

using namespace std;



int main(){
    pid_t pid;
    pid=fork();
    if(pid<0){
        exit(1);
    }else if(pid==0){

        while(1){
            std::cout<<"id"<<pthread_self()<<std::endl;
        
        }

    }else{

        exit(1);//父进程提前退出


    }




    return 0;
}